//---------------------------------------------------------------------------

#ifndef Unit_exibiralunosH
#define Unit_exibiralunosH
//---------------------------------------------------------------------------
#include <stdio.h>
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Grids.hpp>

#include "Unit_principal.h"
#include <Buttons.hpp>
//---------------------------------------------------------------------------
class TFmExibirAlunos : public TForm
{
__published:	// IDE-managed Components
        TStringGrid *StringGridNotas;
        TLabel *lblDisciplina;
        TComboBox *cbDisciplina;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TComboBox *CBoxNotaInicial;
        TComboBox *CBoxNotaFinal;
        TLabel *Label4;
        TLabel *Label5;
        TBitBtn *BitBtn1;
        void __fastcall cbDisciplinaExit(TObject *Sender);
        void __fastcall cbDisciplinaChange(TObject *Sender);
        void __fastcall FormPaint(TObject *Sender);
        void __fastcall CBoxNotaInicialChange(TObject *Sender);
        void __fastcall CBoxNotaFinalChange(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall BitBtn1Click(TObject *Sender);
        void __fastcall FormShow(TObject *Sender);
private:	// User declarations
   FILE *exibealunos;
   FILE *exibenotas;
   FILE *exibedisciplinas;
   int NumeroDisciplinas;
   int OrdenaNomes();
   int ordenado[1000];
   void AtualizarGrid();
public:		// User declarations
        __fastcall TFmExibirAlunos(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TFmExibirAlunos *FmExibirAlunos;
//---------------------------------------------------------------------------
#endif
